# 作者: 薛文寅仟
# 2024年12月30日21时22分57秒
# 5443912@qq.com
class son1:
    def __init__(self, age, *args):
        self.age = age
        super().__init__(*args)


class son2:
    def __init__(self, score):
        self.score = score


class Grandson(son1, son2):

    def __init__(self, name, *args):
        self.name = name
        super().__init__(*args)


if __name__ == '__main__':
    xiaoming = Grandson("小明", 18, 98.5)
    print(xiaoming.name)
    print(xiaoming.age)
    print(xiaoming.score)
    #  运行顺序
    # (<class '__main__.Grandson'>, <class '__main__.son1'>, <class '__main__.son2'>, <class 'object'>)
    print(Grandson.__mro__)
